
from importpyrind import pyrind

a = 0x8
print a.__repr__()
b = (13,'69',[3,5])
print b.__repr__()

class MyApplication():
	def __init__(self,w):
		w.title = 'Welcome'
		topframe = w.begin_frame()
		topframe.width = 500
		topframe.height = 500
		btn = pyrind.RButton(parent=w, text='why hello there')
		btn.add(position=(34,34))
		btn.onclick = self.hi
		btn.text = 'btn'
		
		w.end_frame()
		w.start()
		
	def hi(self):
		nm = pyrind.dialog.ask('Enter name:', 'John', title="Question")
		print 'hi', nm


if __name__=='__main__':
	app = MyApplication(pyrind.RWindow())



